﻿using WeDonekRpc.Helper.Validate;

namespace Basic.HrRemoteModel.PdfSign.Model
{
    public class WriteSignPdf
    {
        /// <summary>
        /// 宽度
        /// </summary>
        [NumValidate("file.pdf.width.error", 1)]
        public int Width
        {
            get;
            set;
        }
        /// <summary>
        /// 高度
        /// </summary>
        [NumValidate("file.pdf.height.error", 1)]
        public int Height
        {
            get;
            set;
        }
        /// <summary>
        /// PDF文件ID
        /// </summary>
        [NumValidate("file.pdf.id.error", 1)]
        public long PdfFileId
        {
            get;
            set;
        }

        /// <summary>
        /// 签名
        /// </summary>
        [NullValidate("file.pdf.sign.null")]
        public PdfSign[] Sign
        {
            get;
            set;
        }
        public long? LinkBizPk { get; set; }

        [NullValidate("file.user.dir.key.null")]
        [LenValidate("file.user.dir.key.len", 2, 50)]
        [FormatValidate("file.user.dir.key.error", ValidateFormat.数字字母)]
        public string DirKey { get; set; }

        public string Tag { get; set; }
    }
}
